package com.xuxin.pda.model;

import com.xuxin.pda.contract.MainContract;
import com.xuxin.pda.presenter.MainPresenter;

public class MainModel implements MainContract.Model {

    @Override
    public void getData(MainPresenter presenter) {
       /* Retrofit.getInstance().createReq(RetrofitApi.class)
                .getData("x", "s", "d")
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(new DisposableObserver<BaseBean>() {
                    @Override
                    public void onNext(@NonNull BaseBean baseBean) {
                        presenter.onSuccess(baseBean);
                    }

                    @Override
                    public void onError(@NonNull Throwable e) {
                        presenter.onError(null);
                    }

                    @Override
                    public void onComplete() {
                        presenter.onComplete();
                    }
                });*/
    }
}